package java3;

import java.util.Scanner;
import java.util.*;

public class Main4 {
	  public static void main(String[] args) {
	        Scanner scan=new Scanner(System.in);
	        while(scan.hasNextInt()){
		        int n=scan.nextInt();
		        String s;
		        String[][] str=new String[n][];
		        for (int i = 0; i < n; i++) {
		        	str[i]=new String[i+1];
					for (int j = 0; j < i+1;j++){
						s=String.format("%d*%d=%d",i+1,j+1,(i+1)*(j+1));
						if(j==i)
							System.out.printf("%s",s);
						else
							System.out.printf("%-7s",s);
						str[i][j]=new String(s);
					}
					System.out.println("");
				}
		        System.out.println(Arrays.deepToString(str));
	        }
	        scan.close();
		}
}
